package com.ynet.middleground.approve.bean;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 项目名：ifp-approve <br>
 * 包名：com.ynet.middleground.approve.bean <br>
 * 类名：PriorityReq <br>
 * 描述： 流程优先级
 * 
 * @author liulx
 * @create 2021-04-29 09:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel
public class PriorityReq extends BaseReqObj {

    private static final long serialVersionUID = 9151962714260220750L;

    @ApiModelProperty(value = "流程实例ID", notes = "流程实例ID", dataType = "String", required = true)
    @NotBlank(message = "流程实例ID不能为空")
    private String processInstanceId;

    @ApiModelProperty(value = "流程优先级 0：一般；1：紧急", notes = "流程优先级 0：一般；1：紧急", dataType = "Integer", required = true,
        allowableValues = "0,1,2")
    @NotNull(message = "流程优先级不能为空")
    @Min(0)
    @Max(1)
    private Integer processPriority;

}
